package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 转售记录
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ResaleRecords对象", description="转售记录")
public class ResaleRecords implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "发起的用户id")
    private Integer userId;

    @ApiModelProperty(value = "转售类型 package_sku  和 package")
    private String resaleType;

    @ApiModelProperty(value = "仓库sku id")
    private Integer packageId;

    @ApiModelProperty(value = "package id")
    private Integer packageSkuId;

    @ApiModelProperty(value = "人民币价格")
    private Integer moneyPrice;

    @ApiModelProperty(value = "人民币价格")
    private Integer scorePrice;

    @ApiModelProperty(value = "开始占用的时间")
    private Date pendingAt;

    @ApiModelProperty(value = "交易完成时间")
    private Date completeAt;

    @ApiModelProperty(value = "关闭时间")
    private Date closedAt;

    @ApiModelProperty(value = "是否公开在公共挂售区")
    private Boolean isPublic;

    @ApiModelProperty(value = "要设置限制仅某手机号用户购买")
    private String limitPhone;

    @ApiModelProperty(value = "状态 1为进行中 2为已成交  3为已失效  4为用户取消  5为交易中")
    private Integer status;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;

    @ApiModelProperty(value = "买方id")
    private Integer buyerId;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    @ApiModelProperty(value = "短id")
    private String sid;

    @ApiModelProperty(value = "集市商户id")
    private Integer tenantId;

    @ApiModelProperty(value = "商品数量")
    private Integer productTotal;

    @ApiModelProperty(value = "建议人民币价格")
    private Integer adviseMoneyPrice;

    @ApiModelProperty(value = "建议积分价格")
    private Integer adviseScorePrice;

    @ApiModelProperty(value = "允许快速匹配")
    private Boolean isAllowFastMatch;

    @ApiModelProperty(value = "成交方式 1为用户自主成交  2为管理后台购买  3为自动匹配成交")
    private Integer completeType;


}
